<?php
/**
 * Mine Block
 * BlockArrayArray class test
 *
 * @author	Emre Hasegeli <hasegeli@itu.edu.tr>
 * @license	New BSD License
 */

namespace MineBlock;

require __DIR__.'/../BlockArrayArray.class.php';

$blockArrayArray = BlockArrayArray::GetFromCSV(__DIR__.'/example.csv');

foreach($blockArrayArray as $blockArray)
	foreach($blockArray as $block)
		echo $block->GetCost().', ';

foreach($blockArrayArray as $blockArray)
	foreach($blockArray as $block)
		echo $block->GetUnderBlockCost().', ';

foreach($blockArrayArray as $blockArray)
	foreach($blockArray as $block)
		echo $block->GetShowedWay().', ';

foreach($blockArrayArray as $blockArray)
	foreach($blockArray as $block)
		echo $block->GetShowedBlockCost().', ';

echo $blockArrayArray->GetMaximumTotalCostTopBlock()->GetTotalCost();
